import random


def gen_lottery_numbers():
    """生成退组随机号"""
    red_balls=[num for num in range(1,34)]
    selected_balls=random.sample(red_balls,6)
    selected_balls.sort()
    selected_balls.append(random.randint(1,16))
    for index,ball in enumerate(selected_balls):
        print('%02d' % ball,end='')
        if index == 5:
            print('|', end='')
    print()

    """主函数（程序入口）"""
def main():
    num=int(input('机选几注：'))
    for _ in range(num):
        gen_lottery_numbers()

if __name__=="__main__":
    main()





